﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FortuneHeaven.Web.Common;
using FortuneHeavenBAL;

namespace FortuneHeaven.Web.Pages.UserCenter
{
    public partial class GiveScoreList : CheckAuthPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                SetPageHeader(FortuneHeavenCommon.Enum.MainPageTabType.hidden);
                ltName.Text = AuthorityCenter.CurrentUserName;
                cftt_zsjfBO zsbo = new cftt_zsjfBO();

                this.rpGiveScore.DataSource = zsbo.GetList(AuthorityCenter.CurrentUserName,"");
                this.ltGiveScore.Text = zsbo.GetTotalScore(AuthorityCenter.CurrentUserName, "").ToString();
                this.rpGetScore.DataSource = zsbo.GetList("", AuthorityCenter.CurrentUserName);
                this.ltGetScore.Text = zsbo.GetTotalScore("", AuthorityCenter.CurrentUserName).ToString();
                Page.DataBind();
            }
        }
    }
}